﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace СorporativeSystem.Audit
{
    public class OrdersGraphic
    {
        public ObservableCollection<ChartItem> CompletedOrders { get; set; }

        public ObservableCollection<ChartItem> DelayedOrders { get; set; }

        public OrdersGraphic()
        {
            CompletedOrders = new ObservableCollection<ChartItem>();
            DelayedOrders = new ObservableCollection<ChartItem>();

            var random = new Random();
            
            for (var i = 0; i < 10; i++)
            {
                CompletedOrders.Add(new ChartItem(DateTime.Now.AddDays(i), random.Next(40, 100)));
                DelayedOrders.Add(new ChartItem(DateTime.Now.AddDays(i), random.Next(30)));
            }
        }
    }
}
